Skip to content

[rust] Add into_stream() to bounded readers#3664

Open
fresh-borzoni wants to merge 1 commit into
apache:mainfrom
fresh-borzoni:rust-into-stream
Open

[rust] Add into_stream() to bounded readers#3664
fresh-borzoni wants to merge 1 commit into
apache:mainfrom
fresh-borzoni:rust-into-stream

Conversation

@fresh-borzoni

@fresh-borzoni fresh-borzoni commented Jul 16, 2026

Copy link
Copy Markdown
Member

closes #3665

Adds into_stream(self) -> impl Stream<Item = Result> to RecordBatchLogReader and LimitBatchScanner.
A try_unfold over the existing next_batch(), so async consumers (DataFusion) can drive the bounded readers as a Stream.

Yields ScanBatch (keeps bucket/offset) and stays a plain futures::Stream, no datafusion dep in core, so the caller wraps it.
Dropping the stream reuses the reader's existing cleanup.

@fresh-borzoni

Copy link
Copy Markdown
Member Author

@beryllw PTAL 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[rust] Stream adapter for the bounded readers

1 participant